package org.dromara.soul.web.request;


import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpRequestDecorator;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.ServerWebExchangeDecorator;

/**
* @Description 
* @Author hex
* @CreateDate 2020/3/9 15:43
*/
public class CustomServerWebExchangeDecorator extends ServerWebExchangeDecorator {

	private final ServerHttpRequestDecorator serverHttpRequestDecorator;

	public CustomServerWebExchangeDecorator(ServerWebExchange serverWebExchange, ServerHttpRequestDecorator serverHttpRequestDecorator) {
		super(serverWebExchange);
		this.serverHttpRequestDecorator = serverHttpRequestDecorator;
	}

	@Override
	public ServerHttpRequest getRequest() {
		return serverHttpRequestDecorator;
	}
}
